<%@ page language="java" contentType="text/html; charset=UTF-8"	pageEncoding="UTF-8"%>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags"%>


<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="robots" content="follow, index" />
<meta name="author" content="iune co." />
<meta name="description"
	content="IUNE有最好的库存管理SaaS软件。以更快更高的准确度，跟进实时数据的访问和库存移动。" />
<meta name="keywords"
	content="库存, 存货管理, 库存管理, 仓库管理, 云ERP, 云逸ERP, 中小型企业云ERP, SaaS ERP软件/系统" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title></title>

<style type="text/css">
td {
	padding: 0px;
	width: 100px;
}
</style>

</head>
<body>



	<div class="container-fluid" data-ng-controller="paramSettingCtrl as Model">
			
	<form class="form-horizontal" ng-if="Model.dataMaster.getCount()==1">

		<div class="row">
			<div class="col-sm-12">
				<div class="page-header">
					<div class="btn-group pull-right" role="toolbar">
						<button type="button" class="btn btn-default"
							data-ng-disabled="Model.dataMaster.currentIndex==null"
							data-ng-show="Model.dataMaster.readonly()"
							data-ng-click="Model.edit();">
							<span class="glyphicon glyphicon-edit"></span> 修改
						</button>
	
						<button type="button" class="btn btn-success "
							data-ng-show="!Model.dataMaster.readonly()"
							data-ng-click="Model.save();">
							<span class="glyphicon glyphicon-floppy-save"></span> 保存
						</button>
						<button type="button" class="btn btn-warning "
							data-ng-show="!Model.dataMaster.readonly()"
							data-ng-click="Model.saveCancel();">
							<span class="glyphicon glyphicon-floppy-open"></span> 取消
						</button>
					</div>
				  	<h3>设置共用参数 <small>系统参数设置</small></h3>
				</div>
			</div>
		</div>



		<div class="row">
			<div class="col-sm-4">
				<p class="lead bg-success">进销存参数</p>
			
				<div class="form-group form-group-sm has-warning">
					<label class="col-sm-5 control-label">采用成本制度</label>
					<div class="col-sm-7">
						<label class="radio-inline " ng-repeat=" row in dataCostingRules track by row.value">
							<input type="radio" name="costingRules" ng-disabled="Model.dataMaster.readonly()" id={{row.value}} ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].costingRules.value" ng-value="row.value" > {{row.label}}
						</label>
					</div>
				</div>
				<div class="form-group form-group-sm">
					<label class="col-sm-5 control-label">成本计价方式</label>
					<div class="col-sm-7">
						<select class="form-control"  
						 	ng-disabled="Model.dataMaster.readonly() || Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].costingRules.value==0"
							data-ng-options="o.costingType as o.costingTypeLabel for o in dataCostingType"
							data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].costingType.value">
						</select>
					</div>
				</div>
	
				<div class="form-group form-group-sm">
					<label class="col-sm-5 control-label">库存现行年月</label>
					<div class="col-sm-7">
						<input type="text" name="kcxxny" class="form-control" placeHolder="yyyy-MM" 
							ng-readonly="Model.dataMaster.readonly()"
							data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].kcxxny.value">
					</div>
				</div>
				<div class="form-group form-group-sm">
					<label class="col-sm-5 control-label">库存关账年月</label>
					<div class="col-sm-7">
						<input type="text" name="kcgzny" class="form-control" placeHolder="yyyy-MM" 
							ng-readonly="Model.dataMaster.readonly()"
							data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].kcgzny.value">
					</div>
				</div>
				<div class="form-group form-group-sm">
					<label class="col-sm-5 control-label">账务冻结日期</label>
					<div class="col-sm-7">
						<input type="text" name="zwdjrq" class="form-control" placeHolder="yyyy-MM-dd" 
							ng-disabled="Model.dataMaster.readonly()"  simple-datepicker orientation="bottom auto"
							data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].zwdjrq.value">
					</div>
				</div>
	
			</div>
			<div class="col-sm-4">
				<p class="lead bg-info">财务参数</p>
				<div class="form-group form-group-sm">
					<label class="col-sm-5 control-label">应收现行年月</label>
					<div class="col-sm-7">
						<input type="text" name="ysxxny" class="form-control" placeHolder="yyyy-MM" 
							ng-readonly="Model.dataMaster.readonly()"
							data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].ysxxny.value">
					</div>
				</div>
				<div class="form-group form-group-sm">
					<label class="col-sm-5 control-label">应付现行年月</label>
					<div class="col-sm-7">
						<input type="text" name="yfxxny" class="form-control" placeHolder="yyyy-MM" 
							ng-readonly="Model.dataMaster.readonly()"
							data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].yfxxny.value">
					</div>
				</div>
				<div class="form-group form-group-sm">
					<label class="col-sm-5 control-label">会计开账年月</label>
					<div class="col-sm-7">
						<input type="text" name="kckzny" class="form-control" placeHolder="yyyy-MM" 
							ng-readonly="Model.dataMaster.readonly()"
							data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].kjkzny.value">
					</div>
				</div>

				<div class="form-group form-group-sm">
					<label class="col-sm-5 control-label">会计开账结束</label>
					<div class="col-sm-7">
						<input type="checkbox" style="margin:0px;" name="kjkzok" class="form-control"
						 	ng-disabled="Model.dataMaster.readonly()"
							data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].kjkzok.value" 
							data-ng-true-value="1" data-ng-false-value="0"
							>
					</div>
				</div>
				
				<div class="form-group form-group-sm">
					<label class="col-sm-5 control-label">会计现行年月</label>
					<div class="col-sm-7">
						<input type="text" name="kjxxny" class="form-control" placeHolder="yyyy-MM" 
							ng-readonly="Model.dataMaster.readonly()"
							data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].kjxxny.value">
					</div>
				</div>

			</div>
			<div class="col-sm-4">
				<p class="lead bg-warning">其他参数</p>
				<div class="form-group form-group-sm">
					<label class="col-sm-5 control-label">应收现行年月</label>
					<div class="col-sm-7">
						<input type="text" name="ysxxny" class="form-control" placeHolder="yyyy-MM" 
							ng-readonly="Model.dataMaster.readonly()"
							data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].ysxxny.value">
					</div>
				</div>
				
				
			</div>
			
			
		</div>


		<div class="row">
			<div class="col-sm-6">

			</div>
		</div>
	</form>				

	</div>





</body>

</html>

